package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.CourseAnalyseMapRepository;
import com.eduction.modules.system.entity.CourseAnalyseMap;
import com.eduction.service.CourseAnalyseMapService;
@Service
public class CourseAnalyseMapServiceImpl implements CourseAnalyseMapService {

	@Autowired
	private CourseAnalyseMapRepository courseAnalyseMapRepository;
	
	@Override
	public void saveCourseAnalyseMap(CourseAnalyseMap c) {
		this.courseAnalyseMapRepository.saveCourseAnalyseMap(c);
	}

	@Override
	public void updateCourseAnalyseMapState(String sign,String schoolId,String expertId) throws SQLException {
		this.courseAnalyseMapRepository.updateCourseAnalyseMapState(sign,schoolId,expertId);
	}

	@Override
	public List<CourseAnalyseMap> queryMapByExpert(String expertId,String identity) throws SQLException {
		// TODO Auto-generated method stub
		return this.courseAnalyseMapRepository.queryMapByExpert(expertId,identity);
	}
	@Override
	public CourseAnalyseMap queryCourseAnalyseById(String sign, String schoolId, String expertId) throws SQLException {
		return this.courseAnalyseMapRepository.queryCourseAnalyseById(sign,schoolId,expertId);
	}

	@Override
	public CourseAnalyseMap findByPid(String pid){
		return this.courseAnalyseMapRepository.findByPid(pid);
	}

	@Override
	public void deleteByPid(String pid){
		this.courseAnalyseMapRepository.deleteByPid(pid);
	}

	@Override
	public List<CourseAnalyseMap> queryMapBySchoolId(String schoolId) throws SQLException{
		return this.courseAnalyseMapRepository.queryMapBySchoolId(schoolId);
	}

}
